home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / fgl105c.zip / 09-26.C < prev    next >
Text File  |  1991-05-05  |  596b  |  29 lines

  1. main()
  2. {
  3.    int new_mode, old_mode;
  4.  
  5.    new_mode = fg_bestmode(320,200,1);
  6.    if (new_mode < 0 || new_mode == 12) {
  7.       printf("This program requires a 320 ");
  8.       printf("x 200 color graphics mode.\n");
  9.       exit();
  10.       }
  11.    old_mode = fg_getmode();
  12.    fg_setmode(new_mode);
  13.  
  14.    fg_setcolor(7);
  15.    fg_rect(0,159,0,99);
  16.    fg_setcolor(9);
  17.    fg_locate(6,6);
  18.    fg_text("quadrant",8);
  19.    fg_waitkey();
  20.  
  21.    fg_tcmask(0x0202);
  22.    fg_tcxfer(0,159,0,99,160, 99,0,0);
  23.    fg_tcxfer(0,319,0,99,  0,199,0,0);
  24.    fg_waitkey();
  25.  
  26.    fg_setmode(old_mode);
  27.    fg_reset();
  28. }
  29.